import './assets/main.css'
import {router} from "@/router/router.ts"
// main.ts

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {createPinia} from "pinia"
//引用pinia持久化组件
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"


const app=createApp(App)
const pinia=createPinia()
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
pinia.use(piniaPluginPersistedstate)